class ArrayGenerator {
    static generateRandomArray(n, max=0) {

        let bound = 0
        if (max === 0) {
            bound = n
        }else {
            bound = max
        }

        let l = []
        for (let i = 0; i < n; i++) {
            l.push(Math.floor(Math.random() * bound + 1))
        }
        return l
    }

    static generateSortedArray(n) {
        let l = []
        for (let i = 0; i < n; i++) {
            l.push(i)
        }
        return l
    }

}


export {ArrayGenerator}